package com.travelgroup.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.travelgroup.enums.LocationType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "路线途径地点")
public class RouteLocation {

    @TableId(type = IdType.AUTO)
    @Schema(description = "路线地点关联id")
    private Long id;

    @Schema(description = "路线id")
    private Long routeId;

    @Schema(description = "地点id")
    private Long locationId;

    @Schema(description = "地点类型（0-地点、1-交通、2-酒店）")
    private LocationType locationType;

    @Schema(description = "建议安排在第几天")
    private Integer dayNumber;

    @Schema(description = "显示顺序")
    private Integer displayOrder;

    private LocalDateTime createTime;

    private Boolean deleted;
}
